/*
 * Copyright (C) 2021  FunGuide, Inc. All Rights Reserved.
 */


package com.yxw.springcloud.service;

import com.yxw.springcloud.model.CommonResult;
import com.yxw.springcloud.model.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Simple to Introduction
 * className: PaymentService
 *
 * @author yanxw
 * @version 2021/5/9 10:19
 */

@FeignClient(value = "nacos-payment-provider", fallback = PaymentFallbackService.class )
public interface PaymentService {

    @GetMapping(value = "/paymentSQL/{id}")
    CommonResult<Payment> paymentSQL(@PathVariable("id") Long id);
}
